const initialState = {}
export default function userReducer(state = initialState, action) {
  switch (action.type) {
    // 设置 个人信息
    case "GET_USER":
      return action.payload

    // 清除 个人信息
    case "CLEAR_USER":
      return initialState
    default:
      return state
  }
}
